package com.feihao.zhou.service;

import com.feihao.zhou.dao.StudentDao;
import com.feihao.zhou.domain.Student;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class StudentService {
    static StudentDao studentDao = new StudentDao();

    //查询所有学生：
    public List<Student> findAllStudent() {
        return studentDao.findAllStudent();
    }

    public void addStudent(Student student) {
        studentDao.addStudent(student);
    }

    public void deleteStudent(String id) {
        //调用dao的delete（id）
        studentDao.deleteStudent(id);

    }

    public void updateStudent(Student student) {
        studentDao.updateStudent(student);
    }
}
